# -*- coding: utf-8 -*-
from selenium import webdriver
import time
import unittest
from venv1.Page.loginPage import loginPage
from venv1.publicModule.login import login

class Login_Case(unittest.TestCase):
    @classmethod
    def setUpClass(self):
        self.driver = webdriver.Chrome()
        self.driver.implicitly_wait(10)
        self.driver.maximize_window()
        self.driver.get("http://10.22.26.74:8080/dist/index.html#/")
        time.sleep(2)
        self.loginPage = loginPage(self.driver)
        self.login = login(self.driver)
    def test01(self):
        username='crystal'
        password='123456'
        login.login(self, username, password)
if __name__ == '__main__':
    suite = unittest.TestLoader.loadTestsFromTestCase(Login_Case)
    unittest.TextTestRunner().run(suite)
